//
//  CameraViewController.h
//  gee
//
//  Created by Gakaki on 11-5-22.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MediaPlayer/MediaPlayer.h>
#import "ASIFormDataRequest.h"



@interface CameraViewController : UIViewController
<UIImagePickerControllerDelegate, UINavigationControllerDelegate> {
        UIImageView *imageView;
        UIButton *takePictureButton;
        MPMoviePlayerController *moviePlayerController;
        UIImage *image;
        NSURL *movieURL;
        NSString *lastChosenMediaType;
        CGRect imageFrame;
    
        UIView *overlay;
}
    @property (nonatomic, retain) IBOutlet UIImageView *imageView;
    @property (nonatomic, retain) IBOutlet UIButton *takePictureButton;
    @property (nonatomic, retain) MPMoviePlayerController *moviePlayerController;
    @property (nonatomic, retain) UIImage *image;
    @property (nonatomic, retain) NSURL *movieURL;
    @property (nonatomic, copy) NSString *lastChosenMediaType;
    
    @property (nonatomic, copy) UIView *overlay;

    - (IBAction)shootPictureOrVideo:(id)sender;
    - (IBAction)selectExistingPictureOrVideo:(id)sender;
- (NSString *) findUniqueSavePath;
@end
